package com.szecsenyi.patterns.strategy;

import com.szecsenyi.patterns.strategy.behaviour.imp.FlyWithRocket;
import com.szecsenyi.patterns.strategy.duck.GeneralDuck;
import com.szecsenyi.patterns.strategy.duck.RocketDuck;
import com.szecsenyi.patterns.strategy.duck.WingDuck;

public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		GeneralDuck duck = new RocketDuck();
		duck.performFly();
		duck.swim();
		GeneralDuck duck2 = new WingDuck();
		duck2.performFly();
		duck2.swim();
		GeneralDuck duck3 = new WingDuck();
		duck3.setFlyBehaviour(new FlyWithRocket());
		duck3.performFly();
		duck3.swim();

	}

}
